import React, { Component } from 'react';
import { View, Text } from 'react-native';
import Nav from "./src/nav";
import RootStore from './src/mobx';
import {Provider} from 'mobx-react';
import { ToastProvider } from 'react-native-toast-notifications'

class Index extends Component {
  render() {
    return (
      <ToastProvider>
        <View style={{ flex: 1 }}>
          <Provider RootStore={RootStore} store={RootStore}>
            <Nav />
          </Provider>
        </View>
      </ToastProvider>
    );
  }
}

export default Index; // 将导出的组件名改为 Index
